<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:t="http://myfaces.apache.org/tomahawk">
<ui:composition
	template="/org/fireflow/mainframe/ContentPaneTemplate.xhtml">
	<ui:define name="rightPane">
		<t:saveState value="#{ApproveInfoBean.loanInfo}" />
		<t:saveState value="#{ApproveInfoBean.approveInfo}" />
		<t:saveState value="#{ApproveInfoBean.currentSn}" />
		<h:form>
			<t:inputHidden value="#{MyWorkItemBean.selectedWorkItemId}" />
			<div align="center"><span
				style="font-size: 16pt; font-weight: bold">某银行贷款审批表</span></div>
			<div style="border: 1px solid blue" align="center"><ui:include
				src="/org/fireflow/example/loan_process/Form.xhtml">
				<ui:param name="LoanInfo" value="#{ApproveInfoBean.loanInfo}" />
				<ui:param name="section" value="3" />
			</ui:include> <!-- 填写审批信息  -->
			<table align="center">
				<tr>
					<td align="center" colspan="2"><span
						style="font-size: 12pt; font-weight: bold">审批意见</span></td>
				</tr>
				<tr>
					<td><t:outputLabel value="审批决定" for="my_decision" />:</td>
					<td><t:selectOneMenu id="my_decision"
						value="#{ApproveInfoBean.approveInfo.decision}">
						<f:selectItem itemLabel="同意" itemValue="#{true}" />
						<f:selectItem itemLabel="不同意" itemValue="#{false}" />
					</t:selectOneMenu> <t:message for="my_decision" errorStyle="color:red;font-size:10pt" />
					</td>
				</tr>
				<tr>
					<td><t:outputLabel value="详细意见" for="detail" />:</td>
					<td><t:inputTextarea id="detail"
						value="#{ApproveInfoBean.approveInfo.detail}" /> <t:message
						for="detail" errorStyle="color:red;font-size:10pt" /></td>
				</tr>
			</table>

			</div>
			
			<div align="center"><t:commandButton value="保存"
				action="#{ApproveInfoBean.doSaveBizData}" /> <t:commandButton
				value="结束工单" action="#{MyWorkItemBean.completeWorkItem}" /></div>
		</h:form>
	</ui:define>
</ui:composition>
</html>